﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Drawing.Imaging;

namespace SceneLib
{
    public class SceneModel : SceneObject
    {
        public string FileName { get; set; }
        public List<SceneTriangle> Triangles { get; set; }
       
        public int NumTriangles { get { return Triangles == null ? 0 : Triangles.Count; } }

        public SceneTriangle GetTriangle(int index)
        {
            return Triangles == null || index < 0 || index > Triangles.Count ? null : Triangles[index];
        }

        public override Intersection Intersect(Vector e, Vector d, float t0, float tf, float time0, float timef)
        {
            return Intersection.NOINTERSECT;
        }

        public override Vector GetTextureColor(Vector p)
        {
            return new Vector(1, 1, 1);
        }
    }
}
